﻿<%@ Page Language="VB" MasterPageFile="~/Public/ManageDownload/MasterPage.master"
    AutoEventWireup="false" CodeFile="SearchDownload.aspx.vb" Inherits="Public_ManageDownload_SearchDownload" %>

<%@ Register Assembly="ExtExtenders" Namespace="ExtExtenders" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">

    <script>
        function renderFileNameCol(val){
          
            return String.format('<a href="{0}" target="_blank">{0}</a>',val);
        }

    </script>

<br />
    <%--    <cc1:YuiGrid ID="gv" AutoGenerateColumns="false" EnableRowSorting="true" Width="550px"
        EnablePaging="true" PagingStyle="NavBar" title="Downloads" runat="server">
        <Columns>
            <cc1:ColModel header="File Name" dataIndex="FileName" sortable="true" width="230"
                renderer="renderFileNameCol" />
        </Columns>
    </cc1:YuiGrid>--%>
    <My:MyGridView ID="gv" runat="server" AutoGenerateColumns="False" DataKeyNames="FileSaveName"
        EmptyDataText="<%$ Resources:NoFiles %>" Width="500" AllowPaging="True" AllowSorting="True"
        SkinID="pager" AllowHoverEffect="True" AllowHoverSelect="false"
        MySortDirection="Ascending" TotalRowCount="0">
        <HeaderStyle Wrap="False" />
        <AlternatingRowStyle BackColor="AliceBlue" />
        <RowStyle BackColor="White" />
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <Columns>
            <asp:TemplateField HeaderText="<%$ Resources:File %>">
                <itemtemplate>
                            <asp:LinkButton ID="lbtnDownLoadFile" runat="server" OnClick="lbtnDownLoadFile_Click"
                                Text='<%# Bind("FileName") %>'></asp:LinkButton>
                        </itemtemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="FileType" Visible="False" />
            <asp:BoundField DataField="FileDesc" HeaderText="<%$ Resources:Desc %>" SortExpression="FileDesc" />

        </Columns>
    </My:MyGridView>
</asp:Content>
